configuration / network / interfaces / vif[ID] / ipv4

CLI REST-API

netmask

netmask
This is a read-write object and valid values are IPv4-subnetmasks.

Datatype-Help:
the ip-subnet-address should looks like this: A.B.C.D
or use a single number for the number of bits to be set to 1.
a subnet mask is used to get the network-address from an IP address.
example: 255.255.128.0
those 4 numbers should be imagined as bits
on this example the bits are: 11111111.11111111.10000000.00000000
on the left side must begin with 1's
on the right side must end with 0's



See also:
/configuration/network/interfaces/vif[ID]/ipv4
/configuration/network/interfaces/vif[ID]/ipv4/ip-address
/configuration/network/interfaces/vif[ID]/ipv4/gateway
/configuration/network/interfaces/vif[ID]/ipv4/enable-dhcp
/configuration/network/interfaces/vif[ID]/ipv4/dhcp-client-id

REST-API Support:


This object is supported by the REST API:

Method: GET
URL: /api/configuration/network/interfaces/vif.*/ipv4


Example using curl:
curl /api/configuration/network/interfaces/vif.*/ipv4


Method: PATCH
URL: /api/configuration/network/interfaces/vif.*/ipv4
Body:
{
  "netmask": "0.0.0.0"
}

Example using curl:
curl -X PATCH /api/configuration/network/interfaces/vif.*/ipv4 -d
{
  "netmask": "0.0.0.0"
}